﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Thirteen23.TED.Views;
using Windows.UI.Xaml;
using Windows.UI.Xaml.Controls;

namespace Thirteen23.TED.Models
{
    public class ApplicationModel
    {
        #region Instance
        private static ApplicationModel _instance;
        public static ApplicationModel Instance
        {
            get
            {
                _instance = _instance ?? new ApplicationModel();
                return _instance;
            }
        }

        private ApplicationModel() { }
        #endregion

        public MainPage MainPage { get; set; }

        public void NavigateBack()
        {
            MainPage.NavigationFrame.GoBack();
        }

        public void NavigateToPage(Type pageType, object param)
        {
            MainPage.NavigationFrame.Navigate(pageType.ToString(), param);
        }
    }
}
